﻿@using ZBJF.Warranty.WebProvider.AdminPemission
<div id="left" style="width: 180px;">
    <div class="accordion" id="menu">
        @RenderPage("/Views/Shared/LeftMenuTemplate/LeftMenuPartail.cshtml", new { PageMuneList = RightHelper.Instance.GetRightOperationMenu(), Pid = 0 })
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $(".accordion-heading a").click(function () {
            $('.accordion-toggle i').removeClass('icon-chevron-down');
            $('.accordion-toggle i').addClass('icon-chevron-right');
            if (!$($(this).attr('href')).hasClass('in')) {
                $(this).children('i').removeClass('icon-chevron-right');
                $(this).children('i').addClass('icon-chevron-down');
            }
        });
        $(".accordion-body a").click(function () {
            $("#menu li").removeClass("active");
            $("#menu li i").removeClass("icon-white");
            $(this).parent().addClass("active");
            $(this).children("i").addClass("icon-white");
        });
        $(".accordion-body a:first i").click();
    });
</script>